package com.lyy.photovoltaic.service;

import com.alibaba.fastjson.JSONObject;
import com.lyy.photovoltaic.beans.UserCartDetails;
import com.lyy.photovoltaic.common.vo.ResultVO;

import javax.xml.transform.Result;

public interface UserCartDeatilsService {
    //新加商品到购物车详情
    public ResultVO addUserCartDetails(UserCartDetails userCartDetails);
    //通过用户购物车id获取购物车详情Id
    public ResultVO getUserCartDetailsByUCID(String uCId);
    //删除购物车中的商品
    public ResultVO deleteUserCartDetails(String uCDId);
    //批量删除购物车中的商品
    public ResultVO batchDeleteUserCartDetails(String[] eIds);
    //更改购物车中商品的数量
    public ResultVO updateUserCartDetailsCount(String uCDId,int num);
    //批量添加商品到购物车
    public ResultVO batchAddUserCartDetails(JSONObject jsonObject);
}
//mapper接口
//int deleteByBatch(String[] array);
